/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package jse;

import java.math.BigInteger;

/**
 *
 * @author WangShuai
 */
public class BigIntegerTest {
    public static void main(String[] args) {
        byte[] bytes = "12".getBytes();  //asc编码
        System.out.println(bytes[0] +""+ bytes[1]);  //4950
        BigInteger bi = new BigInteger(bytes);//new BigInteger("12");
        //toString方法可以设置装换的进制
        System.out.println(bi.toString(16));
    }
}
